#ifndef _OPERATIONS_H_
#define _OPERATIONS_H_  1

#include <gtk/gtk.h>
#include "ttorrent.h"

#ifdef __cplusplus
extern "C"
#endif
void init_session(TTorrent * ttorrent);

#ifdef __cplusplus
extern "C"
#endif
void apply_settings(TTorrent * ttorrent);

#ifdef __cplusplus
extern "C"
#endif
void close_session(TTorrent * ttorrent);

#ifdef __cplusplus
extern "C"
#endif
void
add_torrents(TTorrent * ttorrent, gchar** files);

#ifdef __cplusplus
extern "C"
#endif
gboolean add_torrent(TTorrent * ttorrent, const gchar* fileName, TSaveState * tss);

#ifdef __cplusplus
extern "C"
#endif
void remove_torrent(GtkTreeModel *model, GtkTreeIter *iter, TTorrent * ttorrent);

#ifdef __cplusplus
extern "C"
#endif
void
pause_resume_torrent(GtkTreeModel *model, GtkTreeIter * iter);

#ifdef __cplusplus
extern "C"
#endif
void
prioritize_files(GtkTreeModel *tree, GtkTreeIter * tree_iter, gint mode);

#endif
